#!/usr/bin/node

const log = console.log;
const moment = require('moment');

log(`I am child process, PID:${process.pid}`);

setInterval(()=>{
  log(moment(Date.now()).format('YYYY-MM-DD HH:mm:ss'));
},2000);

setTimeout(()=>{
  log('OK! 16 seconds. Game Over!');
  process.exit();
},16000)

